import request from '@/utils/request'

// 查询影片类型列表
export function listMovietype(query) {
  return request({
    url: '/cinema/cinema/movietype/list',
    method: 'get',
    params: query
  })
}

// 查询影片类型详细
export function getMovietype(typeId) {
  return request({
    url: '/cinema/cinema/movietype/' + typeId,
    method: 'get'
  })
}

// 新增影片类型
export function addMovietype(data) {
  return request({
    url: '/cinema/cinema/movietype',
    method: 'post',
    data: data
  })
}

// 修改影片类型
export function updateMovietype(data) {
  return request({
    url: '/cinema/cinema/movietype',
    method: 'put',
    data: data
  })
}

// 删除影片类型
export function delMovietype(typeId) {
  return request({
    url: '/cinema/cinema/movietype/' + typeId,
    method: 'delete'
  })
}

// 导出影片类型
export function exportMovietype(query) {
  return request({
    url: '/cinema/cinema/movietype/export',
    method: 'get',
    params: query
  })
}